package org.devocean.groupbuying.service.tasks;

import org.devocean.groupbuying.dao.DealDAO;
import org.devocean.groupbuying.service.DealService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class DealTasks {

	@Autowired
	private DealDAO dealDAO;

	@Transactional(readOnly = true)
	@Scheduled(cron = "10 1 1 * * *")
	public void expireDeals() {
		dealDAO.expireDeals();
	}

}
